< previous page page_197 next page >

Page 197
(table continued from previous page)
Function(s)Description
Space, Space$Return a string of repeating spaces
String, String$Return a string of repeating characters
LenReturns the length of a string
InStrDetermines whether one string is in another string
Left, Left$Return the leftmost portion of a string
LTrim, LTrim$Trim spaces from the left of a string
Mid, Mid$Find a string thats contained within another string
RTrim, RTrim$Trim spaces from the right of a string
Right, Right$Return the rightmost portion of a string
Trim, Trim$Trim spaces from both the left and right of a string
IsDateIs a variant of a Date type
IsNullIs a variant of a Null value
IsNumericIs a variant of a numeric value
BeepSounds a tone

String Functions
Visual Basic has a wealth of string functions you can use. If Visual Basic does not have the function you need, you can typically create it from these functions. Lets look at some of the more commonly used string functions in the example shown in Figure 10.1.
8160-0197a.gif
Figure 10.1
String function examples.

 
< previous page page_197 next page >

If you like this book, buy it!